package logicGame.States;

import java.io.Serializable;
import logicGame.Cards.Card;
import logicGame.Game;

public class And extends StateAdapter implements Serializable {

    public And(Game g) {
        super(g);
    }

    @Override
    public State pick(int num) {
        
        Card c = getGame().getActivePlayer().getLastCard();
        c.setOp(num);
        
        if (c.getTimes() < 2) {
            return new PickPlace(getGame());
        } else {
            return proxPlayer();
        }
    }
}
